package com.example.stumanager.admin;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import com.example.stumanager.config.PersonalInformation;
import com.example.stumanager.R;
import com.example.stumanager.student.StudentHomePage;
import com.example.stumanager.config.ChangePassword;

/**
 * 管理员个人中心
 */
public class AdminPersonalCenterPage extends AppCompatActivity {
    private Button personalInformation,changePassword,functional,bt2;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.admin_personal_center_page);
        personalInformation=findViewById(R.id.personalInformation);
        changePassword=findViewById(R.id.changePassword);
        functional=findViewById(R.id.functional);
        bt2=findViewById(R.id.bt2);

        //个人信息
        personalInformation.setOnClickListener(view -> {
            Intent intent = new Intent();
            intent.setClass(AdminPersonalCenterPage.this , PersonalInformation.class);
            startActivity(intent);
        });
        //修改密码
        changePassword.setOnClickListener(view -> {
            Intent intent = new Intent();
            intent.setClass(AdminPersonalCenterPage.this , ChangePassword.class);
            startActivity(intent);
        });
        //信息查看
        functional.setOnClickListener(view -> {
            Intent intent = new Intent();
            intent.setClass(AdminPersonalCenterPage.this , AdminFunctionalModulesPage.class);
            startActivity(intent);
        });

        //返回
        bt2.setOnClickListener(view -> {
            Intent intent = new Intent();
            intent.setClass(AdminPersonalCenterPage.this , AdminHomePage.class);
            startActivity(intent);
        });

    }
}